package com.k2data.test.testng.listener.hook;

import org.testng.IHookCallBack;
import org.testng.IHookable;
import org.testng.ITestResult;

/**
 * IHookable listener
 * @author wangchuan 2019-03-18
 *
 */
public class IHookableListener implements IHookable{

	/**
	 * print mesage around test method
	 */
	@Override
	public void run(IHookCallBack callBack, ITestResult testResult) {
		System.out.println("IHookableListener: before runTestMethod");
		callBack.runTestMethod(testResult);
		System.out.println("IHookableListener: after runTestMethod");
	}
}
